package cn.wolfcode.luowowo.ticket.service;

import cn.wolfcode.luowowo.common.util.AjaxResult;
import cn.wolfcode.luowowo.ticket.domain.Dest;
import cn.wolfcode.luowowo.ticket.domain.Subject;
import cn.wolfcode.luowowo.ticket.domain.Ticket;

import java.util.List;

public interface ITicketService {
    List<Ticket> listTicketTop4();

    List<Ticket> selectTicksByDestIdAndSubjectId(Long ajaxDestId, Long ajaxSubjectId);

    List<Subject> selectSubjectsByDestId(Long ajaxDestId);

    AjaxResult checkPhoneAndCode(String phone, String verifyCode);

    Ticket selectById(Long tid);

    List<Ticket> selectTicketTop5ByDestId(Long tid);

    List<Ticket> selectTicketTop5BySubjectId(Long ajaxSubjectId);

    Subject selectSubjectByTicketId(Long tid);

    Dest selectDestByTicketId(Long tid);

    Ticket selectCoordinateById(Long id);
}
